//
//  DKTitleView.h
//  Whistle
//
//  Created by ZhangAo on 16/3/28.
//  Copyright © 2016年 BookSir. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DKTitleView : UIView

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
@property (nonatomic, assign) BOOL showsIndicator;	// Defaults to YES.
@property (nonatomic, strong) UIColor *textColor UI_APPEARANCE_SELECTOR;
@property (nonatomic, copy) void (^didTouch)(void); // showsIndicator 为 NO 的时候不会触发.

@property (nonatomic, strong) UIView *rightView;

- (void)setSubtitle:(NSString *)subtitle animated:(BOOL)animated;

@end

////////////////////////////////////////////////////////////////////////////////

@interface DKOffsetTitleView : UIView

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, assign) CGFloat yOffset;

- (instancetype)initWithTitle:(NSString *)title;

- (void)setTitleOffsetWithScrollView:(UIScrollView *)scrollView;

@end
